package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.SkuReductionTo;
import com.atguigu.common.to.SpuBoundsTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description:
 * @Author 胡菜鸡
 * @Create 2021-12-27-9:42
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 远程调用保存商品的积分信息
     *
     * @author 胡菜鸡
     * @date 2021/12/27 10:10
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    /**
     * 远程调用保存商品打折、满减、会员价信息
     *
     * @author 胡菜鸡
     * @date 2021/12/27 13:55
     */
    @PostMapping("/coupon/skufullreduction/save/info")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
